<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>PersonJSP</title>
</head>
<body>
<jsp:useBean id="person"
class="com.chapter6.javabean.Person">
</jsp:useBean>
<div>
  <ul>
    <li>
      姓名:
      <jsp:getProperty name="person" property="name"/>
    </li>
    <li>
      性别:
      <jsp:getProperty name="person" property="sex"/>
    </li>
    <li>
      年龄:
      <jsp:getProperty name="person" property="age"/>
    </li>
    <li>
      已婚:
      <jsp:getProperty name="person" property="married"/>
    </li>
  </ul>
</div>
</body>
</html>
